package ink.tiptop.file;

import java.io.File;

/**
 * @author ink.tiptop.zjf
 * @Title: Ticket
 * @Package ink.tiptop.file
 * @Description:
 * @date 2020-07-06 18:18
 */
public class ReadDirFile {
    private static final String format = "<module>%s</module>";
    public static void main(String[] args) {
        String dir = "/Users/zhongjiafeng/Desktop/Project/Company/ali-trunk/bts-manage";
        File file = new File(dir);
        for (File listFile : file.listFiles()) {
            String name = listFile.getName();
            System.out.println(String.format(format, name));

        }
    }
}
